/*
package ru.ifmo.kis.domaingen;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

// Nov 24, 2010 4:17:43 PM
@javax.persistence.Table(name = "productionqueue", catalog = "ItmoKis")
@Entity
public class ProductionQueueEntity {
	private int time;

	@javax.persistence.Column(name = "time", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
	@Basic
	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	private int orderedProductId;

	@Id
	@javax.persistence.Column(name = "orderedProduct", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
	@Basic
	public int getOrderedProductId() {
		return orderedProductId;
	}

	public void setOrderedProductId(int orderedProductId) {
		this.orderedProductId = orderedProductId;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		ProductionQueueEntity that = (ProductionQueueEntity) o;

		if (orderedProductId != that.orderedProductId) return false;
		if (time != that.time) return false;

		return true;
	}

	@Override
	public int hashCode() {
		int result = time;
		result = 31 * result + orderedProductId;
		return result;
	}

	private ProductsEntity orderedProduct;

	@ManyToOne
	public
	@javax.persistence.JoinColumn(name = "orderedProduct", referencedColumnName = "id", nullable = true)
	ProductsEntity getOrderedProduct() {
		return orderedProduct;
	}

	public void setOrderedProduct(ProductsEntity orderedProduct) {
		this.orderedProduct = orderedProduct;
	}
}
*/
